package com.bxait.toymail.search.feign;

import com.bxait.com.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/*
@description: 远程访问商品服务的接口
@ClassName ProductFeignService
@author Chen
@create 2023-04-16 17:22
@Version 1.0
*/
@FeignClient("toymail-product")
public interface ProductFeignService {
    // 查询当前品牌id下的所有品牌信息
    @GetMapping("/product/brand/infos")
    R brandInfos(@RequestParam("brandIds") List<Long> brandIds);

    // 查询当前属性信息
    @GetMapping("/product/attr/info/{attrId}")
    R attrInfo(@PathVariable("attrId") String attrId);


    // 查询sku信息
    @GetMapping("/product/skuInfo/search")
    R getSkuInfo();
}
